package com.excel.student;

public class Student {
	private int id;
	private String name;
	private String cla;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCla() {
		return cla;
	}

	public void setCla(String cla) {
		this.cla = cla;
	}

	@Override
	public String toString() {
		return "Student [id=" + id + ", name=" + name + ", cla=" + cla + "]";
	}
	
	public String[] toArray(){
		String[] str = new String[3];
		str[0] = this.getId()+"";
		str[1] = this.getName();
		str[2] = this.getCla();
		return str;
	}
}
